import request from '/@/utils/request';

//获取当前用户的所有设备
export function getEquipList(customer_id:string){
  return request({
    url: '/api/v1/equip/equipinfo/list',
    method: 'post',
    data:{customer_id,'equip_active_status':'active'}
  });
}

//单个设备运行状态数据
export function getEquipSinglestatus(customer_id:string,equip_num:string){
    return request({
      url: '/api/v1/equip/rundata/singlestatus',
		  method: 'post',
      data:{equip_num,customer_id}
    });
}

//单个设备生产实时数据
export function getEquipCurrentRunData(customer_id:string,equip_num:string){
    return request({
      url: '/api/v1/equip/rundata/rtdata',
      method: 'post',
      data:{equip_num,customer_id}
    });
}
//单个设备当月每日运行时间数据
export function getEquipRunTimeDayData(customer_id:string,equip_num:string){
    return request({
      url: '/api/v1/equip/rundata/runTimeDay',
      method: 'post',
      data:{equip_num,customer_id}
    });
}
//单个设当年每月运行时间数据
export function getEquipRunTimeMonthData(customer_id:string,equip_num:string){
    return request({
      url: '/api/v1/equip/rundata/runtime/monthly',
      method: 'post',
      data:{equip_num,customer_id}
    });
}
//单个设备当日每小时产量列表
export function getEquipOutputHourData(customer_id:string,equip_num:string){
    return request({
      url: '/api/v1/equip/output/hourly',
      method: 'post',
      data:{equip_num,customer_id}
    });
}

//单个设备环境数据
export function getEquipEnvData(customer_id:string,equip_num:string){
    return request({
      url: '/api/v1/equip/rundata/env',
      method: 'post',
      data:{equip_num,customer_id}
    });
}
//单设备每日产量列表
export function getEquipOutputDayData(customer_id:string,equip_num:string){
  return request({
    url: '/api/v1/equip/output/daily',
    method: 'post',
    data:{equip_num,customer_id}
  });
}

//单设备每月产量列表
export function getEquipOutputMonthData(customer_id:string,equip_num:string){
  return request({
    url: '/api/v1/equip/output/monthly',
    method: 'post',
    data:{equip_num,customer_id}
  });
}